#include "visibilitycombobox.h"

VisibilityComboBox::VisibilityComboBox(QWidget * parent) : QComboBox(parent)
{
    this->addItem("public");
    this->addItem("private");
    this->addItem("protected");
}

void VisibilityComboBox::setSelectedVisibility(QString visibility)
{
    if (visibility == "public") this->setCurrentIndex(0);
    if (visibility == "private") this->setCurrentIndex(1);
    if (visibility == "protected") this->setCurrentIndex(2);
}
